package com.drojian.demo1.test4;

import android.os.Bundle;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager2.widget.ViewPager2;

import com.drojian.demo.R;
import com.drojian.demo1.adapter.MyViewPage2Adapter;

public class ViewPager2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.ui4_activity_view_pager2);

        ViewPager2 viewPager = findViewById(R.id.viewpage);
        MyViewPage2Adapter viewPageAdapter = new MyViewPage2Adapter();
        viewPager.setAdapter(viewPageAdapter);


    }
}